home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_313
/
uucp
/
uucp1.lzh
/
src
/
lib
/
mntreq.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-10
|
519b
|
29 lines
/*
* MNTREQ.C
*
* (C) Copyright 1989-1990 by Matthew Dillon, All Rights Reserved.
*/
#include <proto/all.h>
typedef struct Process PROC;
void
mountrequest(bool)
int bool;
{
static APTR original_pr_WindowPtr = NULL;
register PROC *proc;
proc = (PROC *)FindTask(0);
if (!bool && proc->pr_WindowPtr != (APTR)-1) {
original_pr_WindowPtr = proc->pr_WindowPtr;
proc->pr_WindowPtr = (APTR)-1;
}
if (bool && proc->pr_WindowPtr == (APTR)-1)
proc->pr_WindowPtr = original_pr_WindowPtr;
}